﻿<%@ Page Language="C#" MasterPageFile="MasterPage.master" CodeFile="findpassword.aspx.cs" Inherits="vboard_membership_findpassword" %>

<asp:Content ID="Content" Runat="Server" ContentPlaceHolderID="ContentPlaceHolder">
	<div class="Title"><%= GetLocalResourceObject("Title").ToString() %></div>

	<div class="ControlForm">
		<div class="Content"><%= GetLocalResourceObject("Content").ToString()%></div>

		<asp:Panel ID="UserNameCheckPanel" runat="server"
			DefaultButton="UserNameCheckButton">
			<dl class="VGlobal_FormFieldDL60">
				<dt>
					<asp:Label ID="UserNameLabel" runat="server"
						Text="<%$ Resources:UserNameLabel %>"
						AssociatedControlID="UserNameTextBox" />
				</dt>
				<dd>
					<asp:TextBox ID="UserNameTextBox" runat="server"
						Columns="30"
						MaxLength="100"
						CssClass="VWebGlobal_TextBox"
						ValidationGroup="UserNameCheck" />
					<asp:RequiredFieldValidator ID="UserNameTextBoxRequiredFieldValidator" runat="server"
						Display="None"
						ControlToValidate="UserNameTextBox"
						ErrorMessage="<%$ Resources:VGlobalResources, Membership_Validate_UserName_Insert %>"
						ValidationGroup="UserNameCheck"
						SetFocusOnError="true" />
					<ajaxToolkit:ValidatorCalloutExtender ID="UserNameTextBoxRequiredFieldValidatorCalloutExtender" runat="Server"
						TargetControlID="UserNameTextBoxRequiredFieldValidator"
						CssClass="VWebGlobal_Validatorcallout"
						Width="250px"
						HighlightCssClass="VWebGlobal_ValidatorcalloutTargetHighlight" />
				</dd>

				<dt></dt>
				<dd>
					<asp:Button ID="UserNameCheckButton" runat="server"
						Text="<%$ Resources:UserNameCheckButton %>"
						onclick="UserNameCheckButton_Click"
						ValidationGroup="UserNameCheck" />
				</dd>
			</dl>
		</asp:Panel>

		<asp:Panel ID="FindPasswordFormPanel" runat="server"
			DefaultButton="FindPasswordButton"
			Visible="false">
			<dl class="VGlobal_FormFieldDL80">
				<dt><%= GetLocalResourceObject("QuestionLabel").ToString() %></dt>
				<dd>
					<asp:Literal ID="QuestionLiteral" runat="server" />
				</dd>

				<dt>
					<asp:Label ID="AnswerLabel" runat="server"
						Text="<%$ Resources:AnswerLabel %>"
						AssociatedControlID="AnswerTextBox" />
				</dt>
				<dd>
					<asp:TextBox ID="AnswerTextBox" runat="server"
						Columns="30"
						MaxLength="200"
						CssClass="VWebGlobal_TextBox"
						ValidationGroup="FindPassword" />
					<asp:RequiredFieldValidator ID="AnswerTextBoxRequiredFieldValidator" runat="server"
						Display="None"
						ControlToValidate="AnswerTextBox"
						ErrorMessage="<%$ Resources:VGlobalResources, Membership_Validate_SecurityAnswer_Insert %>"
						ValidationGroup="FindPassword"
						SetFocusOnError="true" />
					<ajaxToolkit:ValidatorCalloutExtender ID="AnswerTextBoxRequiredFieldValidatorCalloutExtender" runat="Server"
						TargetControlID="AnswerTextBoxRequiredFieldValidator"
						CssClass="VWebGlobal_Validatorcallout"
						Width="250px"
						HighlightCssClass="VWebGlobal_ValidatorcalloutTargetHighlight" />
				</dd>

				<dt></dt>
				<dd>
					<asp:Button ID="FindPasswordButton" runat="server"
						Text="<%$ Resources:FindPasswordButton %>"
						OnClick="FindPasswordButton_Click"
						ValidationGroup="FindPassword" />
				</dd>
			</dl>
		</asp:Panel>
	</div>
</asp:Content>